package com.lovenote.common.global;

import java.util.HashMap;
import java.util.Map;

/**
 * Defines constants use by apply
 * @author xingkong1221
 *
 */
public class GlobalDefine {
	
	public static final class PAGER {
		/**
		 * The default number of pagination displayed
		 */
		public static final int DEFAULT_PAGINATION_DISPLAYED = 5;
		
		/**
		 * The number displayed on each page
		 */
		public static final int DEFAULT_PAGE_SIZE = 10;
	}
	
	/**
	 * User login status
	 * @author xingkong1221
	 *
	 */
	public static final class USER_STATUS {
		/**
		 * The user has login
		 */
		public static final String IN = "in";
		
		/**
		 * The user is not login
		 */
		public static final String OUT = "out";
		
		/**
		 * The expiry of cookie, just of token and agent
		 * 7 day
		 */
		public static final int COOKIE_EXPIRY = 7 * 24 * 60 * 60; 
	}
	
	/**
	 * Upload file type definition
	 * @author xingkong1221
	 *
	 */
	public static final class UPLOAD_FILE_TYPE {
		/**
		 * Define image type
		 */
		public static final String[] IMAGE = new String[] {"gif", "jpg", "jpeg", "bmp", "png", "tiff"};
	}
}
